from rest_framework.routers import DefaultRouter

from django.urls import path,include
from .api_views import *


router=DefaultRouter()
router.register('api/videos',VideoView)
router.register('api/videos_category',VideosCategoryModelSerializer)

goods_list=VideoView.as_view({'get':'list'})
goods_detail=VideoView.as_view({'get':'retrueve'})

urlpatterns = [

    path('',include(router.urls)),

]